<br /><br />
<div id="view-content">

<h1>Edition des question</h1>
	<?php echo $this->form ;?>
</div>




<?php 
	$this->title = 'Page dacceuil';
	$this->headTitle($this->title);
?>


<table class="table table-striped"   >
<thead><?php
 
		// Render each the title of each post for the current page in a list-item
	
	foreach ($this->paginator as $item) {		   
		foreach ($item as $key => $value){?>
		<?php if(isset($this->headercolums[$key])){?>
			 <th><?php echo  $this->headercolums[$key];  ?> </th>
			<?php } }?>
			<th>Action</th>	
			<?php break;  }?>		
		</thead><tbody>
	
	<?php foreach ($this->paginator as $item) {	?>
		<tr>
		
		<?php  foreach ($item as $key => $value){?>
					<?php if(isset($this->headercolums[$key])){?>
					
					<td><?php echo $value?></td>
		<?php }} ?>	
			<td>
				<a href="<?php echo $this->url(array("action"=>"deletequestion","controller"=>"gsondage","module"=>"sondage","idquestion"=>$item['idQuestion'],"id"=>$item['sondage_idsondage']),null,true);?>">Supprimer</a>
				<a href="<?php echo $this->url(array("action"=>"editerquestion","controller"=>"gsondage","module"=>"sondage","idquestion"=>$item['idQuestion'],"id"=>$item['sondage_idsondage']));?>">Modifier</a>
				<a href="<?php echo $this->url(array("action"=>"editerrepense","controller"=>"gsondage","module"=>"sondage","id"=>$item['idQuestion']),null,true);?>">Editer Reponse</a>
			</td>
			</tr>
		<?php } ?>	
		
		<tr></tr>
		</tbody></table>

		<?php echo $this->paginator; ?>

